'use strict';

angular.module('mean.employ').config(['$stateProvider', '$urlRouterProvider',
    function ($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/user/index');
        $stateProvider
            .state('user', {
                url: '/user',
                abstract: true,
                templateUrl: '/employ/views/user.html',
            })
            .state('user.index', {
                url: '/index',
                templateUrl: '/employ/views/home-index.html',
                controller: 'HomeIndexController'
            })
          
            .state('user.failure', {
                url: '/failure',
                templateUrl: '/employ/views/failure.html',
                controller: 'FailureController'
            })
            .state('user.register', {
                url         : '/register',
                templateUrl : '/employ/views/user-register.html',
                controller  : 'UserRegisterController'
            })
            .state('user.registerSuccess', {
                url         : '/registerSuccess',
                templateUrl : '/employ/views/user-registerSuccess.html',
                controller  : 'UserRegisterSuccessController'
            })
            .state('user.userPage', {
                url         : '/userPage',
                templateUrl : '/employ/views/user-userPage.html',
                controller  : 'UserPageController'
            })
           
            .state('user.userResume', {
                url         : '/userResume',
                templateUrl : '/employ/views/user-userResume.html',
                controller  : 'UserResumeController'
            })
            .state('user.editResume', {
                url         : '/editResume/:resumeId',
                templateUrl : '/employ/views/user-editResume.html',
                controller  : 'EditResumeController'
            })
            .state('user.editResumeLanguage', {
                url         : '/editResumeLanguage/:resumeId',
                templateUrl : '/employ/views/user-editResumeLanguage.html',
                controller  : 'EditResumeLanguageController'
            })
            .state('user.editResumeWork', {
                url         : '/editResumeWork/:resumeId',
                templateUrl : '/employ/views/user-editResumeWork.html',
                controller  : 'EditResumeWorkController'
            })
            .state('user.editResumeSkill', {
                url         : '/editResumeSkill/:resumeId',
                templateUrl : '/employ/views/user-editResumeSkill.html',
                controller  : 'EditResumeSkillController'
            })
            .state('user.editResumeEducation', {
                url         : '/editResumeEducation/:resumeId',
                templateUrl : '/employ/views/user-editResumeEducation.html',
                controller  : 'EditResumeEducationController'
            })
            .state('user.addResume', {
                url         : '/addResume',
                templateUrl : '/employ/views/user-addResume.html',
                controller  : 'AddResumeController'
            })
            .state('user.userWallet', {
                url         : '/userWallet',
                templateUrl : '/employ/views/user-userWallet.html',
                controller  : 'UserWalletController'
            })
            .state('user.userFavorites', {
                url         : '/userFavorites',
                templateUrl : '/employ/views/user-userFavorites.html',
                controller  : 'UserFavoritesController'
            })
            .state('user.more',{//more
                 url         : '/more',
                templateUrl : '/employ/views/user-more.html',
                controller  : 'UserFindJobController'
            })




            .state('user.userInterview', {
                url         : '/userInterview',
                templateUrl : '/employ/views/user-userInterview.html',
                controller  : 'UserInterviewController'
            })

            .state('user.findJob', {
                url         : '/findJob',
                templateUrl : '/employ/views/user-findJob.html',
                controller  : 'UserFindJobController'
            })
            .state('user.company', {
                url         : '/company/:companyId',
                templateUrl : '/employ/views/user-company.html',
                controller  : 'UserCompanyController'
            })
            .state('company.introduce', {//点击进入用户收藏的公司职位
                url         : '/introduce',
                templateUrl : '/employ/views/company-introduce.html',
                controller  : 'UserCompanyController'
            })
             .state('user.require', {//名企招聘模块1
                url: '/require',
                templateUrl: '/employ/views/company/user-require.html',
                controller: 'HomeIndexController'
            })

            .state('user.require-one', {//名企招聘模块2
                url: '/require-one',
                templateUrl: '/employ/views/company/user-require-one.html',
                controller: 'HomeIndexController'
            })
            .state('user.require-two', {//名企招聘模块3
                url: '/require-two',
                templateUrl: '/employ/views/company/user-require-two.html',
                controller: 'HomeIndexController'
            })


            .state('user.job', {
                url         : '/job/:jobId',
                templateUrl : '/employ/views/user-job.html',
                controller  : 'UserJobController'
            })
            .state('user.history', {
                url         : '/history',
                templateUrl : '/employ/views/user-history.html',
                controller  : 'UserHistoryController'
            })
            .state('user.deliverSuccess', {
                url         : '/deliverSuccess',
                templateUrl : '/employ/views/user-deliverSuccess.html',
                controller  : 'DeliverSuccessController'
            })

            .state('user.userInfo', {
                url         : '/userInfo',
                templateUrl : '/employ/views/user-userInfo.html',
                controller  : 'UserInfoController'
            })
            .state('user.editUserInfo', {
                url         : '/editUserInfo',
                templateUrl : '/employ/views/user-editUserInfo.html',
                controller  : 'EditUserInfoController'
            })
          
            .state('company.', {
                url         : '/editUserInfo',
                templateUrl : '/employ/views/user-editUserInfo.html',
                controller  : 'EditUserInfoController'
            })
            .state('user.position', {//更多
                url         : '/position',
                templateUrl : '/employ/views/position/user-position.html',
                controller  : 'HomeIndexController'
            })
           .state('user.confirm', {//确定按钮
                url         : '/confirm',
                templateUrl : '/employ/views/position/user-confirm.html',
                controller  : 'HomeIndexController'
            })
            .state('user.next', {//下一步
                url         : '/next',
                templateUrl : '/employ/views/position/user-next.html',
                controller  : 'HomeIndexController'
            })
   

            .state('redPaper', {
                url: '/redPaper',
                abstract: true,
                templateUrl: '/employ/views/redPaper.html'
            })
            .state('redPaper.index', {
                url: '/index',
                templateUrl: '/employ/views/redPaper-index.html',
                controller: 'RedPaperIndexController'
            })
            .state('user.needhelp', {//获取验证码帮助路由
                url: '/needhelp',
                templateUrl: '/employ/views/user-needhelp.html',
                controller: 'UserRegisterSuccessController'
            })
            .state('user.set', {//拿红包注册设置
                url: '/set',
                templateUrl: '/employ/views/user-set.html',
                controller: 'UserRegisterSuccessController'
            })
            .state('user.editset', {//拿红包注册设置
                url: '/editset',
                templateUrl: '/employ/views/user-editset.html',
                controller: 'UserRegisterSuccessController'
            })
            
         
            .state('user.refreshPage', {
                url         : '/refreshPage',
                templateUrl : '/employ/views/user-refreshPage.html',
                controller  : 'RefreshPageController'
            })
        ;
    }
]);